package com.yueka.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yueka.pojo.entity.instrument_category.InstrumentCategory;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface InstrumentCategoryMapper extends BaseMapper<InstrumentCategory> {
    List<InstrumentCategory> list();

    @Update("update instrument_category set ic_name = #{icName}, status = #{status}, description = #{description}, update_time = #{updateTime} where id = #{id}")
    Integer update(InstrumentCategory instrumentCategory);

    Integer delete(Integer[] ids);

    @Select("select id, ic_name, status, description, create_time, update_time from instrument_category where status = '1'")
    List<InstrumentCategory> getInstrumentList();
}
